package com.ledong.se.timer;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TestDateConstractor {
    public static void main(String[] args) {
        String d = "2012-05-05 12:00";
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        try {
            Date date = sdf.parse(d);
            System.out.println(d);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }
}
